<!doctype html>
<html class="default no-js">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>CannonPhysicsSimulation | ts</title>
	<meta name="description" content="Documentation for ts">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../assets/css/main.css">
</head>
<body>
<header>
	<div class="tsd-page-toolbar">
		<div class="container">
			<div class="table-wrap">
				<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
					<div class="field">
						<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
						<input id="tsd-search-field" type="text" />
					</div>
					<ul class="results">
						<li class="state loading">Preparing search index...</li>
						<li class="state failure">The search index is not available</li>
					</ul>
					<a href="../index.html" class="title">ts</a>
				</div>
				<div class="table-cell" id="tsd-widgets">
					<div id="tsd-filter">
						<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
						<div class="tsd-filter-group">
							<div class="tsd-select" id="tsd-filter-visibility">
								<span class="tsd-select-label">All</span>
								<ul class="tsd-select-list">
									<li data-value="public">Public</li>
									<li data-value="protected">Public/Protected</li>
									<li data-value="private" class="selected">All</li>
								</ul>
							</div>
							<input type="checkbox" id="tsd-filter-inherited" checked />
							<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
							<input type="checkbox" id="tsd-filter-externals" checked />
							<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
							<input type="checkbox" id="tsd-filter-only-exported" />
							<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
						</div>
					</div>
					<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
				</div>
			</div>
		</div>
	</div>
	<div class="tsd-page-title">
		<div class="container">
			<ul class="tsd-breadcrumb">
				<li>
					<a href="../globals.html">Globals</a>
				</li>
				<li>
					<a href="../modules/_laya_d3_physicscannon_cannonphysicssimulation_.html">&quot;laya/d3/physicsCannon/CannonPhysicsSimulation&quot;</a>
				</li>
				<li>
					<a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html">CannonPhysicsSimulation</a>
				</li>
			</ul>
			<h1>Class CannonPhysicsSimulation</h1>
		</div>
	</div>
</header>
<div class="container container-main">
	<div class="row">
		<div class="col-8 col-content">
			<section class="tsd-panel tsd-comment">
				<div class="tsd-comment tsd-typography">
					<div class="lead">
						<p><code>Simulation</code> 类用于创建物理模拟器。</p>
					</div>
				</div>
			</section>
			<section class="tsd-panel tsd-hierarchy">
				<h3>Hierarchy</h3>
				<ul class="tsd-hierarchy">
					<li>
						<span class="target">CannonPhysicsSimulation</span>
					</li>
				</ul>
			</section>
			<section class="tsd-panel-group tsd-index-group">
				<h2>Index</h2>
				<section class="tsd-panel tsd-index-panel">
					<div class="tsd-index-content">
						<section class="tsd-index-section ">
							<h3>Properties</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#fixedtimestep" class="tsd-kind-icon">fixed<wbr>Time<wbr>Step</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#maxsubsteps" class="tsd-kind-icon">max<wbr>Sub<wbr>Steps</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#disablesimulation" class="tsd-kind-icon">disable<wbr>Simulation</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Accessors</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#continuouscollisiondetection" class="tsd-kind-icon">continuous<wbr>Collision<wbr>Detection</a></li>
								<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#gravity" class="tsd-kind-icon">gravity</a></li>
								<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#solveriterations" class="tsd-kind-icon">solver<wbr>Iterations</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Methods</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#clearforces" class="tsd-kind-icon">clear<wbr>Forces</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#raycast" class="tsd-kind-icon">ray<wbr>Cast</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#raycastall" class="tsd-kind-icon">ray<wbr>Cast<wbr>All</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#raycastallfromto" class="tsd-kind-icon">raycast<wbr>All<wbr>From<wbr>To</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#raycastfromto" class="tsd-kind-icon">raycast<wbr>From<wbr>To</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#createconstraint" class="tsd-kind-icon">create<wbr>Constraint</a></li>
							</ul>
						</section>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Properties</h2>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="fixedtimestep" class="tsd-anchor"></a>
					<h3>fixed<wbr>Time<wbr>Step</h3>
					<div class="tsd-signature tsd-kind-icon">fixed<wbr>Time<wbr>Step<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 1.0 / 60.0</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in laya/d3/physicsCannon/CannonPhysicsSimulation.ts:107</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>物理模拟器帧的间隔时间:通过减少fixedTimeStep可增加模拟精度，默认是1.0 / 60.0。</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="maxsubsteps" class="tsd-anchor"></a>
					<h3>max<wbr>Sub<wbr>Steps</h3>
					<div class="tsd-signature tsd-kind-icon">max<wbr>Sub<wbr>Steps<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 1</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in laya/d3/physicsCannon/CannonPhysicsSimulation.ts:105</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>物理引擎在一帧中用于补偿减速的最大次数：模拟器每帧允许的最大模拟次数，如果引擎运行缓慢,可能需要增加该次数，否则模拟器会丢失“时间&quot;,引擎间隔时间小于maxSubSteps*fixedTimeStep非常重要。</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="disablesimulation" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> disable<wbr>Simulation</h3>
					<div class="tsd-signature tsd-kind-icon">disable<wbr>Simulation<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in laya/d3/physicsCannon/CannonPhysicsSimulation.ts:61</li>
						</ul>
					</aside>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Accessors</h2>
				<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class">
					<a name="continuouscollisiondetection" class="tsd-anchor"></a>
					<h3>continuous<wbr>Collision<wbr>Detection</h3>
					<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> continuousCollisionDetection<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
						<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">set</span> continuousCollisionDetection<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/d3/physicsCannon/CannonPhysicsSimulation.ts:112</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>是否进行连续碰撞检测。CCD</p>
								</div>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
						</li>
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/d3/physicsCannon/CannonPhysicsSimulation.ts:117</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>是否进行连续碰撞检测。CCD</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>value: <span class="tsd-signature-type">boolean</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class">
					<a name="gravity" class="tsd-anchor"></a>
					<h3>gravity</h3>
					<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> gravity<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_laya_d3_math_vector3_.vector3.html" class="tsd-signature-type">Vector3</a></li>
						<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">set</span> gravity<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><a href="_laya_d3_math_vector3_.vector3.html" class="tsd-signature-type">Vector3</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/d3/physicsCannon/CannonPhysicsSimulation.ts:125</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>获取重力。</p>
								</div>
							</div>
							<h4 class="tsd-returns-title">Returns <a href="_laya_d3_math_vector3_.vector3.html" class="tsd-signature-type">Vector3</a></h4>
						</li>
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/d3/physicsCannon/CannonPhysicsSimulation.ts:131</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>获取重力。</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>value: <a href="_laya_d3_math_vector3_.vector3.html" class="tsd-signature-type">Vector3</a></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class">
					<a name="solveriterations" class="tsd-anchor"></a>
					<h3>solver<wbr>Iterations</h3>
					<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> solverIterations<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
						<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">set</span> solverIterations<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/d3/physicsCannon/CannonPhysicsSimulation.ts:141</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>获取重力。</p>
								</div>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
						</li>
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/d3/physicsCannon/CannonPhysicsSimulation.ts:147</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>获取重力。</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>value: <span class="tsd-signature-type">number</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Methods</h2>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="clearforces" class="tsd-anchor"></a>
					<h3>clear<wbr>Forces</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">clear<wbr>Forces<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/d3/physicsCannon/CannonPhysicsSimulation.ts:614</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>清除力。</p>
								</div>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="raycast" class="tsd-anchor"></a>
					<h3>ray<wbr>Cast</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">ray<wbr>Cast<span class="tsd-signature-symbol">(</span>ray<span class="tsd-signature-symbol">: </span><a href="_laya_d3_math_ray_.ray.html" class="tsd-signature-type">Ray</a>, outHitResult<span class="tsd-signature-symbol">?: </span><a href="_laya_d3_physicscannon_cannonhitresult_.cannonhitresult.html" class="tsd-signature-type">CannonHitResult</a>, distance<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, collisonGroup<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, collisionMask<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/d3/physicsCannon/CannonPhysicsSimulation.ts:334</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p> 射线检测第一个碰撞物体。</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>ray: <a href="_laya_d3_math_ray_.ray.html" class="tsd-signature-type">Ray</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>射线</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagDefault value">Default value</span> outHitResult: <a href="_laya_d3_physicscannon_cannonhitresult_.cannonhitresult.html" class="tsd-signature-type">CannonHitResult</a><span class="tsd-signature-symbol"> = null</span></h5>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagDefault value">Default value</span> distance: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 2147483647</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>射线长度,默认为最大值</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagDefault value">Default value</span> collisonGroup: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = Physics3DUtils.COLLISIONFILTERGROUP_ALLFILTER</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>射线所属碰撞组。</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagDefault value">Default value</span> collisionMask: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = Physics3DUtils.COLLISIONFILTERGROUP_ALLFILTER</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>与射线可产生碰撞的组。</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
							<p>是否检测成功。</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="raycastall" class="tsd-anchor"></a>
					<h3>ray<wbr>Cast<wbr>All</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">ray<wbr>Cast<wbr>All<span class="tsd-signature-symbol">(</span>ray<span class="tsd-signature-symbol">: </span><a href="_laya_d3_math_ray_.ray.html" class="tsd-signature-type">Ray</a>, out<span class="tsd-signature-symbol">: </span><a href="_laya_d3_physicscannon_cannonhitresult_.cannonhitresult.html" class="tsd-signature-type">CannonHitResult</a><span class="tsd-signature-symbol">[]</span>, distance<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, collisonGroup<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, collisionMask<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/d3/physicsCannon/CannonPhysicsSimulation.ts:352</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>射线检测所有碰撞的物体。</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>ray: <a href="_laya_d3_math_ray_.ray.html" class="tsd-signature-type">Ray</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>射线</p>
									</div>
								</li>
								<li>
									<h5>out: <a href="_laya_d3_physicscannon_cannonhitresult_.cannonhitresult.html" class="tsd-signature-type">CannonHitResult</a><span class="tsd-signature-symbol">[]</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>碰撞结果[数组元素会被回收]。</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagDefault value">Default value</span> distance: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 2147483647</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>射线长度,默认为最大值</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagDefault value">Default value</span> collisonGroup: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = Physics3DUtils.COLLISIONFILTERGROUP_ALLFILTER</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>射线所属碰撞组。</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagDefault value">Default value</span> collisionMask: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = Physics3DUtils.COLLISIONFILTERGROUP_ALLFILTER</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>与射线可产生碰撞的组。</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
							<p>是否检测成功。</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="raycastallfromto" class="tsd-anchor"></a>
					<h3>raycast<wbr>All<wbr>From<wbr>To</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">raycast<wbr>All<wbr>From<wbr>To<span class="tsd-signature-symbol">(</span>from<span class="tsd-signature-symbol">: </span><a href="_laya_d3_math_vector3_.vector3.html" class="tsd-signature-type">Vector3</a>, to<span class="tsd-signature-symbol">: </span><a href="_laya_d3_math_vector3_.vector3.html" class="tsd-signature-type">Vector3</a>, out<span class="tsd-signature-symbol">: </span><a href="_laya_d3_physicscannon_cannonhitresult_.cannonhitresult.html" class="tsd-signature-type">CannonHitResult</a><span class="tsd-signature-symbol">[]</span>, collisonGroup<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, collisionMask<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/d3/physicsCannon/CannonPhysicsSimulation.ts:296</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>射线检测所有碰撞的物体。</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>from: <a href="_laya_d3_math_vector3_.vector3.html" class="tsd-signature-type">Vector3</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>起始位置。</p>
									</div>
								</li>
								<li>
									<h5>to: <a href="_laya_d3_math_vector3_.vector3.html" class="tsd-signature-type">Vector3</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>结束位置。</p>
									</div>
								</li>
								<li>
									<h5>out: <a href="_laya_d3_physicscannon_cannonhitresult_.cannonhitresult.html" class="tsd-signature-type">CannonHitResult</a><span class="tsd-signature-symbol">[]</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>碰撞结果[数组元素会被回收]。</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagDefault value">Default value</span> collisonGroup: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = Physics3DUtils.COLLISIONFILTERGROUP_ALLFILTER</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>射线所属碰撞组。</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagDefault value">Default value</span> collisionMask: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = Physics3DUtils.COLLISIONFILTERGROUP_ALLFILTER</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>与射线可产生碰撞的组。</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
							<p>是否成功。</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="raycastfromto" class="tsd-anchor"></a>
					<h3>raycast<wbr>From<wbr>To</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">raycast<wbr>From<wbr>To<span class="tsd-signature-symbol">(</span>from<span class="tsd-signature-symbol">: </span><a href="_laya_d3_math_vector3_.vector3.html" class="tsd-signature-type">Vector3</a>, to<span class="tsd-signature-symbol">: </span><a href="_laya_d3_math_vector3_.vector3.html" class="tsd-signature-type">Vector3</a>, out<span class="tsd-signature-symbol">?: </span><a href="_laya_d3_physicscannon_cannonhitresult_.cannonhitresult.html" class="tsd-signature-type">CannonHitResult</a>, collisonGroup<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, collisionMask<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/d3/physicsCannon/CannonPhysicsSimulation.ts:256</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>射线检测第一个碰撞物体。</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>from: <a href="_laya_d3_math_vector3_.vector3.html" class="tsd-signature-type">Vector3</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>起始位置。</p>
									</div>
								</li>
								<li>
									<h5>to: <a href="_laya_d3_math_vector3_.vector3.html" class="tsd-signature-type">Vector3</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>结束位置。</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagDefault value">Default value</span> out: <a href="_laya_d3_physicscannon_cannonhitresult_.cannonhitresult.html" class="tsd-signature-type">CannonHitResult</a><span class="tsd-signature-symbol"> = null</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>碰撞结果。</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagDefault value">Default value</span> collisonGroup: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = Physics3DUtils.COLLISIONFILTERGROUP_ALLFILTER</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>射线所属碰撞组。</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagDefault value">Default value</span> collisionMask: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = Physics3DUtils.COLLISIONFILTERGROUP_ALLFILTER</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>与射线可产生碰撞的组。</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
							<p>是否成功。</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="createconstraint" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> create<wbr>Constraint</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">create<wbr>Constraint<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/d3/physicsCannon/CannonPhysicsSimulation.ts:74</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>创建限制刚体运动的约束条件。</p>
								</div>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
			</section>
		</div>
		<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
			<nav class="tsd-navigation primary">
				<ul>
					<li class="globals  ">
						<a href="../globals.html"><em>Globals</em></a>
					</li>
					<li class="current tsd-kind-module">
						<a href="../modules/_laya_d3_physicscannon_cannonphysicssimulation_.html">&quot;laya/d3/physics<wbr>Cannon/<wbr>Cannon<wbr>Physics<wbr>Simulation&quot;</a>
					</li>
				</ul>
			</nav>
			<nav class="tsd-navigation secondary menu-sticky">
				<ul class="before-current">
				</ul>
				<ul class="current">
					<li class="current tsd-kind-class tsd-parent-kind-module">
						<a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html" class="tsd-kind-icon">Cannon<wbr>Physics<wbr>Simulation</a>
						<ul>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#fixedtimestep" class="tsd-kind-icon">fixed<wbr>Time<wbr>Step</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#maxsubsteps" class="tsd-kind-icon">max<wbr>Sub<wbr>Steps</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#disablesimulation" class="tsd-kind-icon">disable<wbr>Simulation</a>
							</li>
							<li class=" tsd-kind-accessor tsd-parent-kind-class">
								<a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#continuouscollisiondetection" class="tsd-kind-icon">continuous<wbr>Collision<wbr>Detection</a>
							</li>
							<li class=" tsd-kind-accessor tsd-parent-kind-class">
								<a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#gravity" class="tsd-kind-icon">gravity</a>
							</li>
							<li class=" tsd-kind-accessor tsd-parent-kind-class">
								<a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#solveriterations" class="tsd-kind-icon">solver<wbr>Iterations</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#clearforces" class="tsd-kind-icon">clear<wbr>Forces</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#raycast" class="tsd-kind-icon">ray<wbr>Cast</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#raycastall" class="tsd-kind-icon">ray<wbr>Cast<wbr>All</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#raycastallfromto" class="tsd-kind-icon">raycast<wbr>All<wbr>From<wbr>To</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#raycastfromto" class="tsd-kind-icon">raycast<wbr>From<wbr>To</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="_laya_d3_physicscannon_cannonphysicssimulation_.cannonphysicssimulation.html#createconstraint" class="tsd-kind-icon">create<wbr>Constraint</a>
							</li>
						</ul>
					</li>
				</ul>
				<ul class="after-current">
				</ul>
			</nav>
		</div>
	</div>
</div>
<footer>
	<div class="container">
		<h2>Legend</h2>
		<div class="tsd-legend-group">
			<ul class="tsd-legend">
				<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
				<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
				<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
				<li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
				<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
			</ul>
		</div>
	</div>
</footer>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
</body>
</html>